@import "../../mobile/common/switch.less";
@import "base.less";

/* Switch */

.km-switch
{
    width: 4.6rem;
    height: 1.9rem;
    line-height: 1.76rem;
    overflow: hidden;
    vertical-align: middle;
}

.km-switch-wrapper
{
    overflow: hidden;
}

.km-switch-background
{
    background-position: 4.25em 0;
    background-repeat: no-repeat;
    background-color: currentcolor;
    margin-left: -3.4rem;
}

.km-switch-container
{
    padding: 1px 0 1px 1px;
    border-width: 0;
}

.km-switch-handle
{
    width: 1.6em;
    margin: 0 4px 0 0;
    border: @mobile-border-width solid transparent;
    background-clip: padding-box;
    -webkit-box-shadow: 0 1px 0 1px currentcolor, 0 -1px 0 1px currentcolor;
    box-shadow:0 1px 0 1px currentcolor, 0 -1px 0 1px currentcolor;
}

.km-switch-label-off
{
    left: 1.5em;
}

.km-switch-label-on
{
    left: -2.8em;
}

.km-switch-label-on,
.km-switch-label-off
{
    text-shadow: none;
    width: 185%;
    font-size: 1em;
    line-height: 1.5em;
    vertical-align: middle;
}

.km-switch-container,
.km-switch-wrapper
{
    .box-sizing(border-box);
    border-width: @mobile-border-width;
    border-style: solid;
    background-clip: content-box;
}

